home *** CD-ROM | disk | FTP | other *** search
/ American History: Interactive Maps & User's Guide / American History: Interactive Maps & User's Guide.iso / pc / Quit.dxr / 00005.ls < prev    next >
Encoding:
Text File  |  2000-01-25  |  651 b   |  25 lines

  1. on mouseDown
  2.   global gQuitButtonPressed
  3.   if gQuitButtonPressed = -1 then
  4.     exit
  5.   end if
  6.   set buttonClicked to the clickOn - 4
  7.   if ((buttonClicked = 21) or (buttonClicked = 22)) and (gQuitButtonPressed > 9) then
  8.     exit
  9.   end if
  10.   repeat while the mouseDown = 1
  11.   end repeat
  12.   if rollOver(buttonClicked) = 1 then
  13.     repeat with counter = 19 to 22
  14.       set the visible of sprite counter to 0
  15.     end repeat
  16.     set the visible of sprite buttonClicked to 1
  17.     if gQuitButtonPressed > 9 then
  18.       set gQuitButtonPressed to buttonClicked - 9
  19.     else
  20.       set gQuitButtonPressed to buttonClicked - 18
  21.     end if
  22.     updateStage()
  23.   end if
  24. end
  25.